package engine.tip.tipItem
{
	import engine.data.ObjectData;
	import engine.newUi.ActorPropertyUI;
	import engine.tip.StrideTipsPanelUI;
	
	import newx.com.config.StaticIni;

	/**
	 *跨服战专用 
	 * @author yanghr
	 * 
	 */	
	public class StrideFighterItem extends BaseTipItem
	{
		public function StrideFighterItem(dataObject:ObjectData=null, data:Object=null)
		{
			super(dataObject, data);
		}
		override public function getMainStr():String
		{
			return	""
//			return getPerValue()
//			+getFighterStr()
//			+getServerName();
		}
		public function getFighterStr():String
		{
			return StaticIni.getSwfLangStrVar("StrideTips_4",[_data[ActorPropertyUI.FIGHT_POWER]])+getChangeLine();
		}
		public function getPerValue():String
		{
			return StaticIni.getSwfLangStrVar("StrideTips_1",[_data[ActorPropertyUI.PER_VALUE]])+getChangeLine();
		}
		public function getServerName():String
		{
			if(_data[ActorPropertyUI.NAME].split(".")>-1)
			return StaticIni.getSwfLangStrVar("StrideTips_5",[_data[ActorPropertyUI.NAME]])+getChangeLine();
			return "";
		}
		override protected function setPic():void
		{
			var p:StrideTipsPanelUI=(_panel as StrideTipsPanelUI);
			p.addPartnerPic(1,int(_data["partner1"]));
			p.addPartnerPic(2,int(_data["partner2"]));
			p.addPartnerPic(3,int(_data["partner3"]));
			p.addPartnerPic(4,int(_data["partner4"]));
			p.addPet(data["petId"],data["petLevel"]);
			p.valuetxt=getPerValue();
			p.fightCount=getFighterStr();
			p.comefrom=getServerName();
			
		}
		
	}
}